﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Default.master" AutoEventWireup="true"
    CodeBehind="BulletinList.aspx.cs" Inherits="AUV5.Web.Pages.BulletinList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {
            $('.redirect').each(function () {
                if (this.href == '') {
                    $(this).hide();
                }
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="fl main_left">
        <p class="usertitle grey">
            <span class="dialogue">系统消息</span>
        </p>
        <div id="showDialogue" class="massage">
            <div class="massage_left">
                <ul>
                    <li><a href="/conversations/all">全部对话</a></li>
                    <li><a href="/conversations/fromme">我发起的对话</a> </li>
                    <li><a href="/conversations/tome">别人发起的对话</a></li>
                    <li class="selected">系统公告 </li>
                </ul>
            </div>
            <div class="massage_right">
                <div class="massageshow">
                    <div class="dialoguelist">
                        <asp:Repeater ID="repBulletin" runat="server">
                            <ItemTemplate>
                                <div class="dialoguelistinfo">
                                    <p class="fl dialogueavatar">
                                        <img alt="" src="/!images/avatar.jpg"></p>
                                    <p class="fl text_right dialogueicon">
                                        <img src="/!images/icon_red.jpg"></p>
                                    <div class="fl dialoguetxt massageinforedbg mar_right">
                                        <div class="bluetxt bold">
                                            <%#(Container.DataItem as AUV5.Model.Bulletin).Title %></div>
                                        <p class="dialogueinfowid">
                                            <%#(Container.DataItem as AUV5.Model.Bulletin).BulletinContent%>
                                            <a class="bluetxt redirect" href="<%#AUV5.BLL.BulletinBLL.Instance.GetRedirectPath(Container.DataItem as AUV5.Model.Bulletin)%>"
                                                title="" target="_blank">点击查看 </a>
                                        </p>
                                        <p class="systemdigtime">
                                            <%#GetTimeSpan((Container.DataItem as AUV5.Model.Bulletin).CreateDate)%></p>
                                    </div>
                                    <p class="clear">
                                    </p>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                    <div class="pages">
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                            CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页" PageIndexBoxType="DropDownList"
                            PagingButtonLayoutType="Span" SubmitButtonText="Go" TextAfterPageIndexBox="页"
                            TextBeforePageIndexBox="转到" PageSize="10" PagingButtonSpacing="" CurrentPageButtonClass="currentpage"
                            ButtonImageExtension=".jpg" ImagePath="/!images/" ShowPageIndexBox="Never">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </div>
            <p class="clear">
            </p>
            <ul>
            </ul>
        </div>
    </div>
</asp:Content>
